I think you can check for, if the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node" is present, it will only be there in 64 bit OS'es, I have checked that it is the case for Windows XP x64 Professional, and for Windows Vista x64 Ultimate. Sorry for my bad english.