Intel® oneAPI Math Kernel Library (oneMKL) provides two methods for getting information about the library version:
using predefined preprocessor symbols (see Using Predefined Preprocessor Symbols for Intel® oneMKL Version-Dependent Compilation)
getting a version string using the mkl_get_version_string function