The game will be played at the County Ground on Wednesday 1st December will a 7.45pm kick off.
Christian Roberts will be unable to play against his old club, as Bristol City put a clause in his contract saying he can't play against them.
Back in August Swindon beat Bristol City 2-1 at Ashton Gate in the league.
The full draw is:
Chester V Wrexham
Hereford V Blackpool
Oldham V Hartlepool
Macclesfield V Tranmere
Swindon V Bristol City
Northampton V Southend
Bristol Rovers V Wycombe
Leyton Orient V Walsall.