UCSNAME (System Variable)

Stores the name of the current user coordinate system for the current viewport in the current space.

(Read-only)
Type: String
Saved in: Drawing

Returns a null string if the current UCS is unnamed.