The following when executed against the LS primary databases instance will return configuration info
exec sp_help_log_shipping_primary_database 'primaryLSdb'
The following when executed against the LS secondary databases instance will return configuration info
exec sp_help_log_shipping_secondary_database 'secondaryLSdb'
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs" 😉