With earlier drivers, the Audio Control Panel was included where the surround sound could be activated and Sterio became a sound that fitted perfectly with a 5.1 system. This is currently a problem with MS and Realtek. Audio Control Panel is no longer included in the driver. For playback I use a codec package with audio rendering, which helps. Then I can distribute stereo to all speakers.
That's not a windows problem, that's add on software. The Sound Blaster line used to include utilities like that. I've never seen it in a base Windows install (and I've owned every version of Windows), until Win10 and WIndows Sonic, but I don't think that's what you meant.
Properly speaking, this isn't a CODEC issue; that just encodes an audio stream. You want an audio rendering program.
Maybe Windows Sonic would work for you?
https://docs.microsoft.com/en-us/windows/win32/coreaudio/spatial-sound