Carlton Cole is undergoing a medical at West Ham with a view to returning to the club on a short-term deal.