What behaviour are you trying to prevent?
The answer to both is probably "no", unless you have control of the hardware, but if that's the case you can prevent people plugging stuff into their computer simply by not installing the hardware that allows them to do that.