Don't know about NY specifically but a number of jurisdictions will not finalize a divorce while the wife is pregnant. There really needs to be a seperate action for paternity along with the divorce to straighten matters out.