To see if .net framework has been installed or not looking for the MSCorEE.dll in the %windir%\system32 directory.
To determine exactly which versions of the .net framework are installed examining the subkeys under the following registy key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\Policy