Well, here's a way (ROOT is Required):
Recommend using ES File Explorer, enable root explorer and mount / & /system as writable.
To check earphone connector count:
navigate to: /efs/FactoryApp/earjack_count (Open as Text and use ES Note Editor)
To check USB cable connector count:
navigate to: /efs/FactoryApp/batt_cable_count (Open as Text and use ES Note Editor)
To reset: delete the current value and replace with 0.
Becareful not to mess with the files or you will possibly brick your device.
Hope you have some nice informative.