Using Qt 6.9 seems to work.
from PySide6.QtGui import QGuiApplication, Qt
QGuiApplication.styleHints().setColorScheme(Qt.ColorScheme.Dark) # Or ColorScheme.Light.
This will give you the current color scheme for the system.
QGuiApplication.styleHints().colorScheme()