Source code of View of Linked server sp_HelpText How to use sp_helptext for view on the linked server ?
There is an answer on SO: SQL using sp_HelpText to view a stored procedure on a linked server


EXEC  [ServerName].[DatabaseName].dbo.sp_HelpText 'storedProcName'