You’d need to load the USoundWave up, decode it entirely (using Precache), then do a waveform visualization algorithm on it. Note that doing waveform visualization is actually non-trivial as naive approaches will likely result in aliasing. (i.e. you’re taking extremely high-frequency data and trying to represent it with a few hundred pixels).
You can look at SynthComponentWaveTable.cpp to see how I load a USoundWave asset and decode it asynchronously to get the PCM data. This object’s intention is to do wavetable synthesis-type stuff with a USoundWave (scrubbing, forward/reverse playback, etc).