Scenario: USB 3.0 Docking station with multiple displays (3).
Just so we have a frame of reference a 1080p screen resolution requires bandwidth of 1920 x 1800 x 24 bit x 60 fps = nearly 5 Gbps. Now you want three of these on one USB connection?
USB 3.0 offers 5 Gbps. USB 3.1 offers 10 Gbps. USB 3.2 offers 20 Gbps but only with a USB-C connection. USB 3.0 and USB 3.1 can offer USB and video on USB-C when coupled with DisplayPort. I've see such KVM switches before.
https://www.startech.com/en-us/server-management/sv211hduc
This works by using the high speed data lines on USB-C. USB over USB-A is not enough.
Is it possible to us a USB hub (with switched ports) and connect 2 laptops, so > that depending on which one is switched on it will send signal to the Dock?
For the dock to get the data means that other computer is not just was the laptop turned off but is must also be disconnected. There is only one hub port and for this all the data flows. There will be sacrifice in the quality of video on each disply, either in frame rate, colors, compression, or not working at all.
One USB 3.0 cable is not enough for a single display. What would work is 3 UBC-C running Displsyport. Power to the monitor must come come somewhere, make it USB-C.
It sounds like you need a 2 port triple monitor KVM switch and there is no other option that can meet your needs.