He and his lawyer should work with the case worker and prosecutor in charge of the case, to see if there is a way he can move out and regain custody. Given her history and probable drug use during pregnancy, the state will likely have serious concerns about his judgment and his willingness to protect the child from similar influences.