Take a look at the WMI classes.

Specificly Computer System Hardware and Operating System.

Search for WMI in the .Net code bank. Gigemboy has a good example on how to use WMI.