The encounter at the Liberty Stadium will pit two recent winners of the competition up against each other, Man United beating Southampton 3-2 in the final last year and Swansea overcoming Bradford City 5-0 in the 2013 showpiece at Wembley Stadium.
The ties will take place in the week commencing October 23.
EFL Cup fourth round draw in full:
Tottenham Hotspur vs. West Ham United Bristol City vs. Crystal Palace Swansea City vs. Manchester United Arsenal vs. Norwich City Chelsea vs. Everton Manchester City vs. Wolverhampton Wanderers Leicester City vs. Leeds United Bournemouth vs. Middlesbrough