I am assuming the home is upside down and a short sale would be required. If that is the case, it must be an arms length transaction, meaning immediate family such as yourself cannot purchase the property. Unless, however, the lender is aware that you are purchasing the property and has no problem.
The above information is not intended as legal advice. If you have any legal questions consult with an attorney of your own choosing.