I don't think there is a Qt API for that, at least not in Qt itself (there could be addon libraries for this).
You probably need native system API for that.

Cheers,
_