[XLA:GPU] Pre-factoring: Add GetDnnVersionInfo helper that returns StatusOr.
[XLA:GPU] Pre-factoring: Add GetDnnVersionInfo helper that returns StatusOr.

Replace repetitive code with calls to the helper.
