one option would be to use a utility I wrote:
http://home.roadrunner.com/~jbmmdietz/wrkrmtwtr.htmlwhich has an option to output to a file, then you could read that file and format as you wish.
If that does not work for you what you need to do is to call the API QSPROUTQ with format OUTQ0100 against each outq in the list you generate.
The output of that API can be checked to see if the outq is really a remote writer.
I have an example CLP included in my utility so you can see how to determine which are remote writers.
Bryan