No. First of all you should know, USB is not logic level interface. Actually USB exploits differential signalling with voltage levels 0.3/2.8V for FS and 0.01/0.4V for HS devices.
With the high probability your device is HS, USB D+ line is switched between 0.01/0.4V and D- between the same levels but in opposite phase.
Even, if it was possible, you need differential receiver to distinquish low state from high state of USB line.
But, as I said, USB interface does not provide direct access to USB lines to programmer, even via Android device driver.
So the only way to solve your task is to use have MCU(microcontroller) with USB OTG interface like STM32.
This MCU is connected to USB interface of your device via it own USB-OTG interface and, to driver of relay via GPIO (general purpose IO).
Be sure that you do not connect MCU to relay directly. You should use some MOS or BJT device to control your relay.
The simplest way, if you are novice in hardware, is to use Arduino Board for this task.
With the MCU or Arduino Board yes, you can solve this task like you want.