ManagementClass os = new ManagementClass("Win32_OperatingSystem");
ManagementObjectCollection osc = os.GetInstances();
foreach(ManagementObject mo in osc)
{
Console.WriteLine("Organization: {0}", mo["Organization"].ToString());
Console.WriteLine("Registered User: {0}",
mo["RegisteredUser"].ToString());
Debug.WriteLine("Serial number User: {0}",
mo["SerialNumber"].ToString());
}