Can I verify the device screen lock

I want to verify the device screen lock from the app and then I want to show some personal details, I don’t want to use any API for this verification.

Is there a way to verify it. screen lock may be PIN, Pattern or Password.

Any quick suggestions may help me.
Thank you.