How to detect Windows is locked (Win+L or locked by screensaver)? Is it possible?

Edit
Report