Detect if phone locking feature is enabled or not

Using javascript in a web page, how to know if the user has enabled or not the security feature that locks his phone ?

That’s, the state of the locking feature, not the state of the lock it-self.

The purpose is to prevent a user from logging into the web application if they have not secured their device.

I could not find any browser API that could provide this.