Under Virginia law, BOTH parties to a marriage have a duty to offer support and provide for the basic needs of their spouse, i.e., shelter, clothing, food. One spouse may not unilaterally decide to withhold or deny the other spouse of those needs. Therefore, one spouse may not simply put the other spouse out of the house with no means with which to support themselves, and no place in which to reside.
Virginia law presumes that any property, real or personal, that is acquired during the marriage is marital property. It makes no difference under the law who purchased the property, in whose name the property is, nor who pays the bill for the property. With that said, each spouse has equal property rights to the marital home. If one spouse changes the locks, the other spouse may take any steps they deem proper to gain entry to THEIR property. This may include climbing through a window, calling a locksmith, or even breaking open the front door. There is no crime for breaking into your own property.
The proper way to obtain exclusive possession of the marital residence is to seek a court order. In Virginia, the court has the authority to enter a temporary order regarding property use, support and child custody issues. This is called a pendente lite order and either party may ask for this relief immediately upon filing for divorce.