As Stronghold Arena's last ability resolves, you don't get to see what the card of your library is before deciding whether to reveal it. If you choose to reveal it, you must put it into your hand and will lose life.