I think you really need to talk to a local attorney about this, as soon as possible. Moving out can be considered desertion, and it could be used against you in the divorce. There are a lot more facts that need to be considered, and you need to have the entire case reviewed so you can get reliable advice on your options and your rights.
I'm not a New York attorney, and the laws on this sort of thing do vary from one state to another. But I don't think that leaving means you lose your share of the equity in the house.