Hi, According to the NY State Department of Taxation and Finance, "We accept information from your most recent driver license or non-driver ID. The ID can be active or expired. If your ID is expiring, we will accept the return."
You can find more information here: https://www.tax.ny.gov/pit/efile/individual-driver-license.htm