You didn't specify in which format that "list datastores Name" is provided, but when I assume it is a CSV with a column named DSName, you could do
Import-Csv -Path .\datastores.csv -UseCulture |
Foreach-Object -Process {
Get-Datastore -Name $_.DSName |
Select Name,
@{N='Cluster';E={(Get-VMHost -Datastore $_ | Get-Cluster).Name}}
}