For readymade programs related to the system information do visit http://codeproject.com/system. You'll need to register (free) to download the sample code.