Try this UNTESTED codes and after that you should have the text string values in the global variable *lst* and to check that out , after invoking the program type at the command line !*lst* then hit enter to see the string(s) if available.
Code:
(defun c:Test (/ ss i sn)
(princ "\nSelect attributed block(s) :")
(if (setq ss (ssget '((0 . "INSERT") (66 . 1))))
(repeat (setq i (sslength ss))
(setq sn (ssname ss (setq i (1- i))))
(vl-some '(lambda (x)
(if (eq (strcase (vla-get-tagstring x)) "REV")
(setq *lst* (cons (vla-get-textstring x) *lst*))
)
)
(vlax-invoke (vlax-ename->vla-object sn) 'Getattributes)
)
)
)
(princ)
)
(vl-load-com)