The tk::getMods() function provides an interface to inspect the list of loaded mods, returning an array of tk::ModInfo objects.
Additionally, tk::isModLoaded() is available to directly query for the presence of a specific mod.