paste the following into chat, hit return when hovering mouse over the button you want.

/script DEFAULT_CHAT_FRAME:AddMessage( GetMouseFocus():GetName() );