Sure, we'll use MameWAH as an example FE since I'm familiar with it, but I'm sure they are all similar.
In MameWAH, you could put a graphic of your control panel right into the background image. MameWAH allows you to position text boxes that contain information read from the catver.ini file (and other info). If MameWAH could read the controls.dat for the P1_Button1 "variable", I could position that text box near or on top of that button. It would then display "jump" when Donkey Kong was highlighted just like it displays the monitor info from the catver.ini file. Then when I select the next game (say Street Fighter just for discussion), it would display "punch" "kick" etc. for each button. You would know what each button was configured to do prior to launching the game because it would read the info as your highlighted selection changed. The miscDetail text could be displayed right beneath the CP graphic. That's what I'd like to see. I can't think of an example where the Player 2 controls would be different, so I'd just display the text on half of my CP graphic.
Now with modular controls (me) or a rotating control panel, you could have a new control panel show up if you fake the control panel graphic as an artwork file. Better yet would be to create a new layout and use filters to generate the game list and pretend each CP layout was a new emulator. That way you could keep the actual CP grahic as part of the background image (That idea would work perfect with MameWAH.)
I just don't know how to make it happen. Could a FE read directly from the controls.dat or would it need to pass the info through a controller configuration to accurately display which button did what? If it can read it directly, it *sounds* relatively easy to do. I *think* it could read it directly and just display the info, but I can't code anything other than html. And I use WYSIWYG progs for that.

For "normal" CP's this would be great. For frankenpanels one might need duplicate text boxes to cover the P3 & P4 button arrangements. Unless you labeled the buttons on the real life control panel as A,B,C,D,E,F and refer to them like I showed in the pic from my post above.