Can we calculate surface potential in LAMMPS?

I am doing an image charge simulation. There is plate at x=0, and real particles are located at x>0, while imaginary particles are located at x<0. I want to calculate electrostatic potential at x=0. In LAMMPS, how can we calculate the electrostatic potential at x=0?

You may find the last few posts in this thread useful: How to solve for the Z-directional potential of the movable electrode due to the use of the cg method?