The IDirectSound interface contains two methods that allow your application to investigate and set the configuration of the system's speakers; that is, their location relative to the listener. These methods are IDirectSound::GetSpeakerConfig and IDirectSound::SetSpeakerConfig.
DirectSound uses the speaker configuration to optimize 3-D effects for the user's sound system.