"You can find the MediaWiki version on your server in the file includes/DefaultSettings.php"
Example:
$wgVersion = '1.18.2';