As others pointed out using WMI. Do this by adding a link to System.Management.dll, then calling the following code:
ManagementObjectSearcher mos =
new ManagementObjectSearcher("root\\CIMV2", "SELECT * FROM Win32_Processor");
foreach (ManagementObject mo in mos.Get()) {
Console.WriteLine(mo["Name"]);
}
Besides "Name", WMI also provides other interesting facts about your processor. See http://msdn.microsoft.com/en-us/library/aa394373(VS.85).aspx for a final list.
source
share