Not exactly about what you asked but see if this may help a bit.
Use the Environment class in the System namespace. This class provides information for the current environment and platform.
For example, the following code gives you the user domain name, and operating system version.
System.Environment.UserDomainName;
System.Environment.OSVersion.ToString ();
Use the SystemInformation class in the System.Windows.Forms namespace. This class provides information about the operating system. This class has properties. You simply call the property.
For example, this code gives the primary monitor size.
Use the Registry class, which you can find in the Microsoft.Win32 namespace.