Get the Master Page details:
$site = Get–SPSite http://yourSiteUrl/
$web = $site.RootWeb
$web.CustomMasterUrl
//This will give the url of the custom master used.
$web.MasterUrl
//This will give the url of the master page used.
$web.AlternateCssUrl
//This will give url of the custom css used.
To change the master page using powershell use below script:
$site = Get–SPSite http://yourSiteUrl/
$web = $site.RootWeb
$web.MasterUrl = “_catalogs/masterpage/MasterPages/seattle.master”
//put the relevant path where your master page is present
$web.update()
//This will update the new master page for the SharePoint site.