- Find which visual studio and service pack version installed.
looking in the registry here
HKEY_LOCAL_MACHINE\Software\Microsoft\DevDiv[ProductFamily]\Servicing\9.0\
then finding a property named something like "SP" or "SPIndex". A value of 1 means installed, and 0 means not installed.
- Find which .net version installed.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP, also value of 1 for Install means installed, value of 1 for SP means sp1 installed, value of 2 for SP means sp2 installed.