The chances that OpenGL and DirectX are already installed on your system is very very big... Especially if you have any other 3D games on your computer...
Can't you play because of an error message involving OpenGL or DirectX? Then it could be a driver related issue.
OpenGL and DirectX (both called API's) is basically toolsets for game/app developers giving them an easier way to control 3D cards to draw what you see

You don't need to worry about that though.
If you want to be sure you have the latest DirectX version, then simply just visit Windows Update and see if it's there.