How to find the default audio recording device.. What is the api i can use..

Please help
Mary