If it's in foreclosure, that means the bank doesn't own it yet, the homeowner still owns it. Check to see if one of the two largest holders of mortgages hold the note: http://www.fanniemae.com/loanlookup/ or https://ww3.freddiemac.com/corporate/ Your best bet is to speak to the homeowner. The bank (servicer) can not legally discuss anything about the property with you until it forecloses or they take possession of the deed.
The mortgage document or note may have a legal way for you to take possession of the property with the homeowner's blessing.
Larry Kennedy, Realtor