As far as I know, there's no way in B4PPC to do this, and it's neider in ther regestry...
I onve spended hours looking for something like it in the web, and found some curious results regarding c# dll taht could retrieve the IMI code, but costed a lot of $$$$...