The League One side secured a meeting with Jürgen Klopp's Reds by beating Bristol City 1-0 in a third-round replay on Tuesday night.
The fixture later this month will be the first time the clubs have met since 1996 when Roy Evans' Liverpool recorded a 4-0 victory at Gay Meadow in the same stage of the competition.
The match will be broadcast live on the BBC.