Ask yourself, what is the maximum number of different IP addresses?
I think it would be relatively inexpensive to have count(ips) vs. count(distinct(ips)) to give a general idea of how many accounts have used IPs used by other accounts.
More expensive would be an “on demand” search for particular IPs
Depending on how many accounts / IPs a forum has, finding all non-distinct IPs could be extremely expensive. If my math is close, the formula for finding out how many checks would be needed would be something like
(n*(n+1)/2)-n
where n is the total number of IPs
* eg. for 100, that’s 4950, for 1000 that’s 499500. You get my point.