boolean running = Workflow.isRunning(this, id);
The id is the object that was returned from:
Object id = Workflow.start(this, worfklowNameOrId);
On [[workflow:server:start_workflow|server-side]], the call is different:
WorkflowAccess.getCurrentInstance().isWorkflowRunning(id);