As descripted on bytes.com (
Clickety[
^]) You can check for the Registry key
HKEY_LOCAL_MACHINE\Software\Microsoft\DirectX.
To get the DirectX version read "
Version" string in the same location. If the key does not exist - There is not DirectX installed at all.
cheers,
Marco Alessandro Bertschi