Get current/active work-screen

How could I get the current/active work-screen from an application?
I know that it's possible to iterate all components of a container but do you have an API or similar?
I know that it's possible to iterate all components of a container but do you have an API or similar?