Source code of View of Linked server sp_HelpText
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'