You can take look at syslockinfo in books online and query it to get info you need.