Looks like SocialEngine is the source of truth for Wordpress.
This way, you can make SocialEngine the source of truth for Discourse too.
You can implement a sso.php page using this guide.
Also, this may help you: Discourse SSO and API Helper for PHP