Finding and banning ip-addresses

Hello im having problems with my wordpress mu website, im constantly getting "viagra blogs" signing up, is there a way to find their ip-addresses and banning them?