The way exists but it's rather complicated. Try to find manual "Guide to Interfacing with ANSYS". This book will help you. You must write xxxx.emat file by
ematwrite,on
solve
This file contains element matrices (stiffness, mass...)
Nodes are already reordered for solver. Read the...