I'm getting conflicting information.
Here, it says that h2testw writes to the drive to determine its true capacity. I can't see any other way to do so either, with only the ability to read/write sectors to the device and not e.g. use some extended commands that could get the flash hardcoded ID.