C/C++ API to list enabled gnome extensions

There is a command gnome-extensions list --enabled to list enabled extensions. Is there any C/C++ API to check the same from code?

No, you’ll have to call the org.gnome.Shell.Extensions.ListExtensions D-Bus method and filter the result (which is what the gnome-extensions utility does).