If there are only 3 medipens, then you're in an older version of the demo - I increased it to 4. Either way, in the ending room, one of the interactable items tells you where the medipens are.
thanks