Esptool.py is a Python-based, open source, platform independent utility to communicate with the ROM bootloader in Espressif SoCs.
Get Esptool.py by running this command:
pip install esptool
Run the follwing command to connect with the ESP32 device and get some details on the tpye of hardware:
esptool.py -p COM4 flash_id