Surprised no one has answered already. Basically the divorce court can do with the parties' finances whatever it thinks is fair in all the circumstances.
The first priority will be to look after the children, and make sure they are adequately cared for and housed. This usually means that the mother gets to stay in the house with the children. It is then up to the court to try to share out the assets fairly. Sometimes the mother gets the house to keep. Sometimes the father gets a defined interest in the house, not realisable until the children are grown up. Sometimes it is possible to downsize to another property. Sometimes the mother can raise some capital to buy out the fathers interest in the house. It just depends.