Action to check playback destination?

I’m trying to construct a shortcut that includes an action to check where the audio is currently playing (iPhone, HomePod, Bluetooth speaker, etc.) and take different actions depending on the result. I’m 99% sure that this is not possible with the stock actions in Shortcuts, but I’m hoping that Toolbox Pro or another 3rd party solution would have something, even if it’s a series of actions instead of a single action. Any ideas?

My (free) Actions app provides an action to get the playback destination.


These are some great additions to the Shortcuts actions! Thanks.