Something different

Well one way would be to create a voltage divider that feeds into an analogue input. One resistor is on the main board and the other on the plug-in board. Each plug-in has a different resistor value.

Thus, depending on the value of the resistor on the plug-in board the voltage read by the analogue input will vary and you can determine which board is plugged in.