Detecting Multiple Recording and Playback Lines

If I have a computer with say 2 sound cards, is there any way to determine this in Java? What about multiple input sources, mic vs line in, or different inputs on cards?

Cheers,
Dr. A>

After poking around awhile, it appears the solution is to enumerate all the mixers in the system. On the Mac, possibly other systems as well, input devices can show up under a mixer that has no name. This happens when I plug in a USB headset and a webcam.

Cheers,
Dr. A>