The particle system does not detect collisions.
You must use Addon to detect collisions of particles.
You can receive the relevant Addon from the link below.
You can also ask if the idea you came up with is possible.
※ The attachable file size is 5mb.
(When saving a file from blender, if you look at the cogwheel-shaped opt in the upper right, there is a compression option to reduce the size of the file.)