I guess you'll have to parse output from one of the Pacemaker CLI tools.