Do you mean you want an identifier to find the serial number of the running mIRC ? I don't think there is one, but you can find this number in HKEY_CURRENT_USER\Software\mIRC\License and the user name in HKEY_CURRENT_USER\Software\mIRC\UserName .
There are dlls to explore registry keys, else i think you can do it with COM objects.