You would need to iterate the <li> elements via javascript, assemble the element values, and make an AJAX call to your server-side code to save it.
For example, to get an array of all <li> elements, you could write
var elements = document.GetElementByTagName("li");