DIY Photobooth: LED puck lights potentiometer suggestions
You need to determine several things about the circuit around the pot to be able to say with confidence that a digipot is suitable.

For instance, the maximum peak voltages with respect to 0 volts on all terminals. This means peak dc as well as peak ac voltages.

Once this is defined you can begin to choose a digipot but, this is not straightforward. It might be that the current pot controls several tens of milli amps of current. This needs to be determined else the digipot you might choose will internally burn on overcurrent.

Another problem might be that both ends of the current pot are sat at several volts above 0 volts. This means that your serial control data voltages are inconveniently not ground referenced. In cases like this you might need to generate an isolated voltage supply AND an isolated digital control. This can get messy because an isolated supply might create common mode noise that causes odd things to happen like random LED flickering.

You might get lucky of course but without a decent analysis of how the current pot circuit works it's hard to say.