Not an app, but some USB testers (e.g. POWER-Z KM003) can do this by reading an e-Marker chip on the cable. I'm not sure if there's a way to access eMarker purely through software without some sort of driver support, though.
The problem is that a cable saying that it's something does not mean that it actually conforms to the standard and can deliver that speed/power. And proper testing requires complex hardware.
That's true of every cable that has ever existed, including basic electrical wiring, and so feels like a separate problem than merely identifying what kind of cable a cable even intends/claims to be in a world where they all have the same shape connector: don't let the perfect be the enemy of the good.