In a divorce, a judge can give each spouse one of the homes. However, this would not effect the lender depending upon one of teh houses as collateral for the loan on the other. If the spouse fails to pay for the house, the lender coudl forecloase on it and the other house. The innocent spouse would after go after their ex spouse for recompense.