Unless the previous owner did something illegal such as manufactured drugs, stored hazordous waste or such, any defect (leaking roof, water in basement, broken windows etc.) will be the banks responsibility after the property is transferred by a deed in lieu of foreclosure.
The lender agreed to take title to the property as is instead of pursuing forclose. The property is all theirs now baby. The lender may be able to before the sale takes place go after the seller/property owner that broke their legal contract for any damages that were intentional.
Proving it is another matter. Like holes in the wall--"Oh we just had an accident when we were moving!"