The Hammers were 2-1 winners over Cheltenham on Tuesday night and will now face a clash with Malky Mackay's men.
The tie will be played during the week commencing September 23.
The most inspirational photos from the Sochi Paralympics
From Melbourne to Abu Dhabi: 2014 Formula One tracks - in pictures
The craziest ever tattoos from sports fans
See every Formula One car of the new season
The dream World Cup kits that have become a sensation
World Cup fever hits the 2014 Rio Festival
Euro Papers: Messi’s contract on the rocks
Frankie Gavin confident of staying unbeaten
Kristen reveals a little too much...
Man's 'horrifying' discovery in packet of crisps
Has Lady Gaga gone too far with this disgusting new gimmick?
Which 41-year-old actress thought she could play a 17 year-old?
The secrets of blasting belly fat without setting foot in a gym