Standalone chargers will usually mess with the data pins in the usb connector, D- and D+ ... they're either connected together, or there's some resistors between the pins and ground or pin and voltage, or there's an IC inside the charger which messes around with the data pins to support multiple charging standards (usb pd, samsung, iphone, etc etc)
So I suppose you could try to see if there's some kind of "handshake" with the PC, some query to identify or something, and that would tell you it's an actual computer and not a charger.
You could have a resistor (for example 0.01 ohm resistor) in series with the voltage input and measure the voltage drop across the resistor, and you can figure out the current this way.
There are also some chips which have multiple inputs and one output and automatically switch between inputs according to some rules or according to input priority