You can use the NI-DAQmx API, with the DAQmx Create Channel VI to set up a microphone acquisition channel (image).
If you have the Sound and Vibration Measurement Suite installed, you may want to take a look at the examples here:
<LabVIEW Directory>\examples\Sound and Vibration\Audio Measurements
-Alan