There is also GetVolumeInformation api - here is another sample (didn't take much to search for that either).