Do you guys know if I can replace the potentiometer in that dimmer with a digital pot, controlled from arduino ?
You can’t.
Or is there another way?
Yes.
Use a FET to switch the strip on, and feed the FET with a PWM signal from the analogWrite call. The value used will set the brightness.
This link is for a RGB strip, but just use one FET to control your white strip.