I want to extract the following information from the system:

*Windows build
*the volume number of the harddisk

Does anybody know how to do this?