I would say about 4 years. That said i think they will us stricter methods like if the internet is connected do weekly checks to see if it can access eshop and if not not let them boot any games.
It depends on how big, popular and hot the Switch will be. If it will be a sucess I give it 2 years. If it will be like the PSViTA or WiiU I give it 5 years!