Windows 11 auto-updates DirectX via Windows Update—you're likely already on the latest version. To force an update, open Windows Update in the Windows 11 Settings app and click "Check for Updates." ...
Microsoft no longer officially supports Windows 10, but you still have an option to get one year of free security updates.