Manchester United's reward for knocking out holders Manchester City is a home EFL Cup quarter-final tie with West Ham.
In the other quarter-finals, Hull will host Newcastle, Liverpool face Leeds while Southampton will play Arsenal.
Ties will take place on 29 and 30 November.
Full quarter-final draw
Liverpool v Leeds United
Manchester United v West Ham
Hull City v Newcastle United
Arsenal v Southampton