How long until my laptop can't play games at high settings?

Lenovo y50

Intel Core i7-4700HQ 2.4 GHz Processor
8 GB DDR3 RAM; 1 TB 5400 rpm Hard Drive; 8 GB Solid-State Drive
Discrete NVIDIA GTX-860M 2G Graphics
15.6-Inch FHD (1920 x 1080) IPS Display
Windows 8.1, 4-hour battery life

Will it be able to play games on high for at least 2 years?

Depends what game. Top of the line games, 1 to 2 years max. Normal games would give about 2 to 2 and half years.

2.5 maybe 3 years

You should be able to play most games on High with your specs. But if you're hoping to play next gen games like Far Cry 4 or Assassin's Creed Unity expect to only play it on Med or Low. And your battery life isn't enough especially if you're playing online games which will drain your battery like a *itch.

I have Witcher 2 and Watch_Dogs but I have to play everything on Med so the game will run smoothly and not freeze on high graphics. But at least I can play the game so thats nice.