Following is the law with regards to the same:
Section 13(4) in The Securitisation and Reconstruction of Financial Assets and Enforcement of Security Interest Act, 2002
(4) In case the borrower fails to discharge his liability in full within the period specified in sub-section (2), the secured creditor may take recourse to one or more of the following measures to recover his secured debt, namely:—
(a) take possession of the secured assets of the borrower including the right to transfer by way of lease, assignment or sale for realising the secured asset; 2[(b) take over the management of the business of the borrower including the right to transfer by way of lease, assignment or sale for realising the secured asset: 2[(b) take over the management of the business of the borrower including the right to transfer by way of lease, assignment or sale for realising the secured asset\:" Provided that the right to transfer by way of lease, assignment or sale shall be exercised only where the substantial part of the business of the borrower is held as security for the debt: Provided further that where the management of whole, of the business or part of the business is severable, the secured creditor shall take over the management of such business of the borrower which is relatable to the security or the debt;]
and therefore you may go ahead and purchase the property from bank, but usually it is not advised to say, the owner might create some legal issue in the future.
Regards