There is no presumption that anyone gets the house in a divorce. If the house is owned, it may be that one of you can buy the other out of their interest based on an appraised value. If a buyout isn’t possible, then the house is usually sold.
Before a final settlement or trial order, the court can order who gets to live in the house. There may be circumstances where a court will give one party exclusive use and occupancy of the house. This is done in cases where continuing to live together in the house is a practical impossibility. It is often done in cases where family violence is an issue.