Is it possible to detect if the foreground application is running in full screen mode or not?

To get it more specific, I want to know if the "Status pane" is visible or not when another application in foreground?

Many thanks in advance.