She can get permission to stay in the house during the court case and you will need to continue to pay the loan.
Looks like this is hypothetical and your marriage is not going towards the divorce, you should just sell the house before the court order.