Former Arsenal and Manchester City midfielder Samir Nasri is to undergo a medical at West Ham before a proposed move to the London club.