For general machine information, you want to use WMI. It is supported by classes in the System.Management namespace, in particular the ManagementQuery class.
The best way to get started is with the WmiCodeCreator utility . It lets you know which WMI classes are available on the machine and run queries. Best of all, it automatically generates the C # code you need, ready to be cut and pasted into your program. Highly recommended.
source share