How can I check what resolution sunshine is sending to my moonlight device

I want a way to automate getting the resolution from sunshine using either python or a batch file so that when I start a stream I can have my pc set its resolution to the same res as my moonlight device is asking for

For example: I set my moonlight at 720p 30fps, I want my batch file or python script to see that when I start the stream and send it to my python script that does the rest

I already have the automation of setting my resolution to whatever

I'm on windows 10