Wincollect Agent Report

Is there a way to pull a report or file to show the same information as the WinCollect window under the Admin tab? I have tried this command but it doesn't give me a version number. psql -U qradar -c "COPY(select * from sensordevice where eccomponentid > 0) TO STDOUT WITH CSV HEADER" >> $enabledComponents