How to check locked records

Is there any way to see which records/documents are locked by which user via Tamino Manager or an XQL ?
I think the current activities tab does not always show them.
What happens if a java program locks a document and then ends unexpectedly? How long does this document remain locked ?