how to get vulkan status for enabled in cpp code?

For valkan and OpenGL I have to handle different branches.

Is there a way at the source code level to know if the current device is Vulkan or OpenGL?