It really depends on what you mean by "installed." If they were installed through a CAB file (the most common), the registry will HKEY_LOCAL_MACHINE\Software\Microsoft\.NETCompactFramework entries in HKEY_LOCAL_MACHINE\Software\Microsoft\.NETCompactFramework that you could check programmatically.
source share