There is no direct connection from Hambantota to Kandy. However, you can take the bus to Colombo Bastian Mawatha Bus Terminal, take the walk to Colombo Fort, then take the train to Kandy. Alternatively, you can travel from Hambantota to Kandy in around 4 h 3 min.
From Hambantota bus to Colombo Bastian Mawatha Bus Terminal, walk to Colombo Fort, then train to Kandy. 10 h 42 min Rs. 744. From Hambantota taxi to Kandy. 4 h 3 min Rs. 22714. From Hambantota drive to Kandy. 4 h 3 min Rs. 3530.