That's going to be hard. For example, I have a lot of "rubber" antennas that have small coils integrated into them for electrical lengthening purposes. Heck, I have 433 MHz antennas that work reasonably well, less than 7cm long! If I had guess their frequency from their dimension, I'd have assumed them to be "naive" \$\lambda/2\$ dipoles (coax to the middle of the antenna, outer conductor folded back to the bottom, inner conductor to the top) and put them more into the 2.4 GHz category than 433 MHz!
Unless you can literally see the conductors, don't trust the plastic shape! A lot "higher-end" consumer wifi access points, for example, come with screw-on (RP-)SMA antennas that look a lot bigger than their insides are – because many sharp-edged antennas look very "pro gamer" or something.
So, aside from simply testing with reference devices (if it works well for wifi reception, it's probably at least a wifi antenna, could still be a multi-band-antenna), I'd say it's hard to get anywhere just from looking at external dimensions.