How do I check if screen is in fullscreen mode?

I noticed after switching from VS2015 to VS2017 that the -windowed command no longer worked