"I'm an excellent housekeeper. Every time I get divorced, I keep the house".
I should stress that this is a quote from Zsa Zsa Gabor! But, who does normally keep the house?
Sorry, but I'm going to have to say that it depends. It depends upon all the facts, history of the financial side of the marriage, children and needs as does all aspects of a divorce settlement. But if you have main care of the children, a career path clearly affected by that, you've been married some years and your spouse can house themselves too then you might expect to have a good chance of keeping it.
Divorce solicitors are often asked "Can I leave the house"? No, please don't. Certainly not until your divorce solicitor has checked that the house is registered in your name or jointly with your spouse.
Also, you should take advice upon possible implications for any child custody (now called "residence") issues. It's very hard to explain why your spouse "cannot properly care for" the children if you left them alone with them.
"Every time I get divorced" is a depressing phrase, but to be expected from celebrities perhaps. Personally, the most I have dealt with for one person is a lady for whom I did 3 divorces. Each time she got a bigger settlement and remarried a progressively richer man, her last settlement being roughly £8 million.