I have a device plugged into a USB port in my computer and would like to make a C++ program that controls it. I have a program that already does this, so is there a way to monitor the data that is sent to and from the device?

I have experience in C++ and ASM, but have never done anything like this, so any advice is helpful!