Can I know if my phone is connected to a Bluetooth headset?

Hello. Recently, I was trying to get “whether the mobile device is using headphones as audio output”.
I found AreHeadphonesPluggedIn in FAndroidMisc and FIOSPlatformMisc. It works fine, but only for wired headphones.
If I use wireless headphones (connected via Bluetooth), it does not work.
Which API should I use to tell if the phone is connected to Bluetooth headphones?

Thank you for your help.