You can look into Deltawave. Software for doing exactly as you describe. Pkane a member here wrote it.
Long thread covering it from the beginning until the non-beta release.
Folks, Only for the brave: I'd like to solicit your feedback and suggestions on DeltaWave null-testing software. It's an early preview, so please be gentle! Details and software download are available here: https://deltaw.org An example report produced by DeltaWave comparing two USB cables...
www.audiosciencereview.com
You can download it for free here:
deltaw.org
There is a long running thread with people doing loopback nulls that is over 10 years old at gearspace (formerly gearslutz).
Originally Posted by didier.brest here's the result with soft limiting Thanks, Didier!
gearspace.com
Nulls aren't quite so deep as you might hope for though we know why. Primarily it is because of phase differences in the upper two octaves caused by different digital filters in use. These tests at gearspace are all 44.1 khz. Deltawave can actually unwrap that and mostly fix it. Once you do that you do in fact get some very deep nulls. When used for other purposes such as running a loopback and changing cables then rerun to compare what differs about cables you typically get nulling down to the thermal noise level indicating the cables all give the same results.