How to find out the time elapsed after a user is locked out due to entering incorrect password?

I am trying to find out a way to access the time elapsed after a user has locked themselves out so that I can display a message if login is attempted in the lockout duration. How can I go about doing this?