Hello Guill,
If you are using LabVIEW, you can use SO_Volume.vi (not present in all LV versions).
If you are using CVI, the best way is to use Microsoft Windows SDK functions, look at multimedia functions on msdn.com
Hopes this help
Salissou ISSA
Applications Engineer
National Instruments France