Finding out about the type of ESP32 I'm using under pio

Is there a command to find out the type of ESP32 (sizes of flash, ram etc.) I’v attached?

Just running something like

python C:\Users\Max\.platformio\packages\tool-esptoolpy\esptool.py --chip auto flash_id

should make esptool try to autorecognize both COM port and ESP type in its output.