USB voltage and current detector