Sculpting - get a list of affected vertices

Hey,
is it possible to get a list of vertices which are being affected by a brush right after I press LMB?
I use Blender as terrain tool and I want to write a script which will update vertical position only of the terrain objects(structures, trees…) which are right at/close enough to sculpted area. THNX