Casimir-Polder potentials as entanglement probe