SPWorkflowActivationProperties.HistoryListId property
SharePoint 2013
Gets the ID of the list to which workflow history events are logged for the workflow.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)