If it is REO, bank will clear all the liens before closing. If you do the loan for this purchase, your lender will help you check out this also;
If it is auction house, then you take it at your own risk. Which means you are responsible for the all liens from this house. You have to wait for 10 years to buy your own title insurance.