from product listing for the ESP-WROVER-KIT v4.1.
You can always ask esptool.py to give you the flash size, and you can detect the size of the PSRAM via SPI tool, there are built-in functions for it.
#include <Arduino.h>
void setup() {
log_d("Total heap: %d", ESP.getHeapSize());
log_d("Free heap: %d", ESP.getFreeHeap());
log_d("Total PSRAM: %d", ESP.getPsramSize());
log_d("Free PSRAM: %d", ESP.getFreePsram());
}
void loop() {}
See here.