I think that if you use the classes in the System.Management namespace
you can figure this out. The classes in that namespace are used to access
WMI, which is the management instrumentation interface.
You will probably want to look for instances of the Win32_SoundDevice
class, which will represent the properties of a sound device.