How can I check input of USB?
No, you cannot sense the USB wire state directly. USB is a much more complex interface than that, it is no comparison to the old style serial and parallel ports that could be used for direct I/O with a simple driver program. A complex handshake is exchanged with the PC even before the first byte of 'real' data/payload can sent.

Maybe your PC has a parallel port that can be used? Or you should use a USB to GPIO converter which are broadly available for varying prices (both extremely high and extremely low).