Definitely speak to a bankrutcy attorney in your state, but generally when a home is included in a bankruptcy the homeowner can't just sell it.
Any potential sale would have to go through the court. All the current creditors involved in the bankruptcy would be consulted with and would have to approve the sale. I have seen this done a few times.
There is no way to buy it with proper title insurance and you won't be able to get a mortgage for the home because the court will probably have filed what is called a "lis pendens" which is a notice to the public that action is being taken against the property.
That may be a question that an attorney should answer....but I will say that with my experience, everytime I have had a house to sell that has an owner in bankruptcy, them court had to approve the sale..the owner had to get permission to sell the house...thanks, JJ