Each of these instruments have a standard USB Interface provided so that you can connect it to a host computer and use software provided or another scripts has stated above.
Alternately, these instruments can also be augmented with standard GPIB communication protocol and the user manual accompanying these instrument will have the commands and parameters. You better write your own program which I think is much simpler way so that you can read what you want.