The two teams will have to replay after a goalless draw in the third round on Saturday but whichever team does make it through will have home advantage.
Championship side Cardiff will be favourites to progress, they are currently third in the table, while Mansfield, who are seventh in League Two will be eyeing a shock.
Here’s the draw in full:
Liverpool v West Brom
Peterborough v Fleetwood/Leicester
Huddersfield v Birmingham
Notts County v Wolves/Swansea
Yeovil v Manchester United
Carlisle/Sheffield Weds v Stevenage/Reading
Cardiff/Mansfield v Manchester City
MK Dons v Coventry
Millwall v Rochdale
Southampton v Watford
Middlesbrough v Brighton/Crystal Palace
Bournemouth/Wigan v Shrewsbury/West Ham
Hull v Nottingham Forest
Newport County v Spurs
Sheffield United v Preston
The fourth round is due to take place between the 26-29 January.