The answer to this question depends on whether there is an existing custody agreement between you and your wife. If there is a custody agreement, there is probably a provision which prohibits either party from relocating outside of New York State. In some agreements, there are provisions which prevent either party from moving outside of the county.
To be safe, is best to consult a Family Law Lawyer in Buffalo Ny for more information. If there is an existing order in place, and the order has a provision which prohibits either party from leaving the State of New York, it possible that you could face criminal sanctions if you do leave the State.