Hi Kajal,
I don't its possible to create clusters using lists.
A small trick you can do is convert list to a matrix or data frame and use the same to create clusters.
Ex:
> l = list(list(1:5),6,list(7:10))
> x=hclust(dist(as.matrix(unlist(l))))
> plot(x)