USB use two wires in order to transmit frames, green and white, each with two logical values : 0v and 5v.
Let's plug a joystick on PC, if you listen at its two wires, you can snif sniff a USB transmission. Saving it for example on RAM.
These two wires can be traduce into one with four states : 00 01 10 11.