Yes that can be done with peerguardian,
you can manually add ip adresses.
And your protected against various nosy organisations.
http://www.methlabs.org/
Don't know for sure if you can block ip adresses in Bearshare itself, but I think it must be possible as most clients have this feature.