This is a 5 position selector switch.
Regardless of whether you will be using a switch or a potentiometer, you will hardly find one component that has the two knobs in line. You would have to position the two switches or potentiometers side by side.
May I suggest as an alternative a set of 5 pushbuttons arranged in line? These pushbuttons can easily be read by 5 ports of a simple microcontroller (e.g. an
arduino if you don't want to build your own). You could put an LED next to each pushbutton or use pushbuttons with integrated LEDs. These LEDs would be controled by 5 outputs of the controller to indicate which 2 buttons are actually the ones seting the range.
If no button is pressed, the state of the outputs doesn't change.
When a button is pressed, the software activates the respective output (LED) and deactivates the previous output (depending on which button is pressed the previous higher or lower output).
If you decide to not only light the LEDs for the leftmost and rightmost button, but also all LEDs in between (the full range), you can use the same outputs that drive the LEDs to drive the motors. You will ned a
simple driver stage as a microcontroller will normally not be able to drive a motor directly.