One way you can do that by assigning a value of young's modulus (E) for that volume order or two magnitudes higher than the other materials in your structure. Say if you have structure made of steel (E=29E6 psi), then define the E=10E10 psi for that volume which you do not want to be deformed...