The house is up for grabs - equally to both spouses. But the situation changes if their are minor children. A strong preference of the courts is to allow minor children to remain in the marital home. In practical terms that means whoever gets custody gets the house.