SPWebApplication.UserDefinedWorkflowsEnabled property
SharePoint 2013
Gets or sets a Boolean value specifying whether users can create workflows in the Web application.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Property value
Type: System.Booleantrue if users are allowed to create workflows; otherwise, false. The default value is true.