Command to check if plex player is playing

Not that I know the command you are looking for but there is a fantasic plug-in called Tautulli
It has so many features(and monitors streams in real time of course). You may be able to start there…