Congratz for the new oscilloscope!
It's about 10-30 lines of Python, but sure can be done in C.
As an inspiration you can take a look at
https://github.com/lxi-tools/liblxi.
But before that, assign a fixed IP to your new dso, then open a telnet to the IP you assigned, port 5555. Mine has 192.168.1.3, so with netcat that will be:
nc 192.168.1.3 5555
aaa@bbb:~$ nc 192.168.1.3 5555
# then from inside nc, type
*IDN?
# and if all OK, your oscilloscope will answer with something like
RIGOL TECHNOLOGIES,DS1104Z,DS1ZA123456789,00.04.05.SP2
That's it, you now officially know how to talk SCPI with your oscilloscope, in this case using Telnet.