Forgot to write: QStyleFactory::keys() is used to get all available style names programatically, but I'm not sure if we have that function in our c bindings (not near computer atm to check it).
EDIT: Just checked, there's QStyleFactory_keys(AList: QStringListH) in all bindings (qt4, qt5 and qt6), so you can use it to extract available style names.