BTW, and you can check for locally installed SQL Server instances on a system. This information is stored in the registry at the following location:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL
You have to check this for 32-bit and 64-bit! See "Set x64 Mode..." script function to switch into 64-bit mode to check the 64-bit registry branch.
Friedrich