The Minstermen are in the third round having seen off Darlington 2-0 on Saturday and League Two high-flyers Rotherham 3-0 in a first-round replay.
The tie will be played over the weekend of January 8/9.
Source: PA