A. It is kept in the SQLArg0 value in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\Parameters.

The value has a form like "-dD:\MSSQL\DATA\MASTER.DAT"

To move master just shutdown SQL Server, move the device using explorer/move, amend this registry parameter and then restart.