Playing 5.1 AAC on Mac and Windows using SDL?

Hi

Is it possible to play back 5.1 AAC audio on Windows using SDL?

From what I can read it should be possible on Mac using Core Audio lib. But is there somehow to detect if a Mac has a speakerset of 5.1 or 2.0 and to control if it should be played back as 5.1 or a stereo downmix?

Lars