How do I know if a player has the pause menu open?

Is there a hook, function, or variable I can look at that tells me when/if a player has a pause menu open or not within the client realm?