McLaren's Fernando Alonso has confirmed he will be participating in the 2018 24 Hours of Le Mans, as he looks to complete motorsport's coveted Triple Crown.