Everything depends on if the manufacturer multiplexed the windows or not.
For example, General Motors tends to multiplex their windows. This means that every door has a module inside it. The module controls the window, door lock, power mirror, etc... and takes inputs from door lock and window switches.
The only thing to pass through the door jam is power ground and network lines (mostly). When the driver pushes a button for the passenger window, the driver door module senses the switch input and sends a signal over the network to the passenger door module. The passenger door module then rolls down the window. With this kind of setup, a message can be generated on the network that will move a window. To be very clear, this is not an OBD standard function; it is specific to the manufacturer.
This interface is exposed on the network for diagnostics. I have personally rolled windows up and down with a scan tool. Unless the windows have position switches built in, then no.
If the windows are hardwired then it is not possible.