The 31-year-old will play the role of an engineer onboard the Retribution in Infinite Warfare.
The game, which is rated is rated PEGI 18, is out on 4 November on the PS4, Xbox One and PC.
Lewis Hamilton said: "I've been a Call of Duty fan for long time, so it's an absolute honour to be part of this game and the franchise."
Infinity Ward, the makers of Call of Duty: Infinite Warfare, say the Retribution is one of the United Nations Space Alliance's last remaining warships after a deadly attack on their fleet.