DirectX 12 is already baked into the operating system.
In Windows 10 run dxdiag.exe, then look for the DirectX Version Info at the bottom of the System tab. Boom! DirectX 12.
But before you get too excited, remember that the mere presence of DX12 in Windows 10 is essentially useless until graphics drivers and other software are released to take advantage of Microsoft’s new gaming API.