waveOutGetDevCaps

[DllImport("winmm.dll", SetLastError = true)]
public static extern uint waveOutGetDevCaps(
   uint uDeviceID,
   ref WAVEOUTCAPS pwoc,
   uint cbwoc
);

Microsoft documentation: Link

Last updated