Wow, I really really hate AppleScript.
Your solution does work.
But this:
tell process "ControlCenter"
set b to button 2 of group 1 of front window
value of attribute "AXAttributedDescription" of b
end tell
Fails with an error (button 2 is the matching button).
Why? Why does whose
work, but getting the attribute fail?