Is there a way to check if a .OCX or .DLL file is registered.

I have already found a way to (un)register a file through code, but now I need to find out whether a certain file is already registerd !

Any help is most welcome !