Prevent arduino from drawing power from digital pins?

How do you know there is no 5 volt supply?
Paul