Search the web (I am sure it would be listed in Planet Source Code) for a DLL called KIRA. Its excellent for low-level access to system info.