Some licenses depending on issue date don't have these document numbers on them.
Review the information below, but if you do not have a document number, then you can proceed by leaving the entire license information section blank (i.e don't include the document number or any other information in that screen). You should be able to hit continue without actually entering any of the license information. Your return will still be processed without it as the IRS does not require the license number and neither does NY, but they are asking for it more of an identity protection measure (some states like Alabama and Illinois are requiring it).
The document number is an 8 or 10 digit alphanumeric number found either on the back of the license or lower right hand corner (depending on the year of your license). It is not the same as the drivers license number. I have included a link to the NY authority that displays images below.