Go to court and file for divorce and custody. The child has not been out of state for six months or longer, so you should be able to maintain jurisdiction in New York. Self-help forms and information are here, but you should consider retaining a lawyer.