Can an optometrist examine your eyes and tell if have had a stroke or some sort of head injury?

Certainly. The optometrist might find a specific pattern of vision loss, or might generally notice some interactional problems such as speech difficulties. But if there are acute issues such as trauma or abrupt changes, best place to evaluate, in this situation is the emergency room.