ESP8266 NodeMCU firmware version

I have various version of the NodeMCU and it appears that using the same programming code, the different NodeMCU versions respond differently. I want to be able to detect the firmware so I can use that in the code to correct the behaviour, depending on the firmware. The NodeMCU documentation describes the node Module which has the .info() function. For programming I'm using the Arduino IDE and I cannot access this node Module, however. The ESPClass, available in the Arduino IDE gives some of the variables however NOT the firmware version.

Is there a way to retrieve the firmware version from the NodeMCU using the Arduino IDE?

if you want to propose an enhancement, you are welcome to submit it here on Github: Issues · esp8266/Arduino · GitHub.

what is 'firmware' in this case?

I have some Amica v0.9 and some Doit v2's. I'm not sure if this version is in the firmware or if it can be found elsewhere.

Insomniux:
I have some Amica v0.9 and some Doit v2's. I'm not sure if this version is in the firmware or if it can be found elsewhere.

did you upload a sketch from Arduino IDE on this NodeMcu? then the firmware is your sketch now

OK, then I should rephrase the question:
How can I get information about the hardware version of the NodeMCU?

Insomniux:
OK, then I should rephrase the question:
How can I get information about the hardware version of the NodeMCU?

the MCU doesn't know on what board it is

OK, then I have to rephrase my question:

  1. Can I (programmatically) get the version of the dev-board on which ESP board is mounted
  2. Can I get the version of the ESP board which is part of the NodeMCU

For both questions it would be great to know how, if possible.