Microsoft makes it unusually difficult to determine which codec your Bluetooth device is using
There is a log message, which only happens at the start of an audio stream, and it requires a little decoding, but you can get at it with inbox tools
Hat tip to https://helgeklein.com/blog/how-to-check-which-bluetooth-a2dp-audio-codec-is-used-on-windows/